package com.jungle.design.mode.strategypattern.strategy;

import com.jungle.design.mode.strategypattern.entity.enums.PayEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * @author Jungle
 * @create 2024-09-15 21:55
 */
@Slf4j
@Component
public class WechatPay implements PayStrategy {

    @Override
    public void pay(BigDecimal money) {
    log.info("支付方式==>WechatPay 支付金额==>{}",money);
    }

    @Override
    public PayEnum getHandleStrategy() {
        return PayEnum.WECHAT_PAY;
    }
}
